<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<style>
	table{  
	     border-collapse: collapse;  
	     border: none;  
	}  
	td,th{padding:6px 0;}
	tr>th{
		border-bottom:2px solid #aaa;
	}
	tr>td{
		border-bottom:1px solid #aaa;
	}
</style>
<head>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
				
		})
	</script>
</head>
<body style="width:550px;margin:50px auto;">
	<span style="font-size:1.5em;font-weight:bold;">AOP模拟测试——管理端</span>
	<br/><br/>
	<hr/>
	<br/>
		<div style="text-align:right;">
			<a href="/testAop/admin/caculate"><button><span style="font-size:1em">统计</span></button></a>
		</div>
		
		<table style="text-align:center;width:550px;">
			<tr>
				<th style="width:60px;">序号</th>
				<th style="width:200px;">操作按钮</th>
				<!-- <th style="width:200px;">调用次数</th> -->
				<th style="width:200px;">响应时间(ms)</th>
				<th style="width:300px;">操作时间</th>
			</tr>
			<c:forEach items="${users }" var="item" varStatus="a">
			<tr>
				<td>${a.count }</td>
				<td>${item.functionName }</td>
				<%-- <td>${item.numbers }</td> --%>
				<td>${item.responsetime }</td>
				<td>
					<fmt:formatDate value="${item.createtime }" pattern="yyyy-MM-dd HH:mm:ss" /> 
				</td>
			</tr>
			</c:forEach>
		</table>
		<div style="text-align:right;margin-top:8px;">
			<a href="/testAop/admin/query?pageNo=1"><button><span style="font-size:0.5em">首页</span></button></a>
			<c:forEach end="${totalpage }" begin="2" var="a" step="1">
				<a href="/testAop/admin/query?pageNo=${a }"><button><span style="font-size:0.5em">${a}</span></button></a>
			</c:forEach>
			<a href="/testAop/admin/query?pageNo=${totalpage+1 }"><button><span style="font-size:0.5em">末页</span></button></a>
		</div> 
	<br/>
	<hr/>
	<br/><br/>
	<div style="text-align:right;">
		<a href="/testAop"><button><span style="font-size:2em">返回</span></button></a>
	</div>
</body>
</html>